package sh.pojo;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@ConfigurationProperties(prefix = "man")//读取man所有的前缀配置信息，然后按照名称注入进来
public class Man {

   private String userName;
   private Boolean boss;
   private Date birth;
   private Integer age;
   private String[] address;
   private List<String> addressList;
   private Map<String, Object> hobbies;  // 爱好
   private Woman woman;
   private List<Woman> wifes;

   //但要set/get方法


}